﻿<?php
/* $Revision: 1.43 $ */
// Titles and screen header
// Needs the file config.php loaded where the variables are defined for
// $rootpath
// $title - should be defined in the page this file is included with
$_SESSION ['STARTTIME'] = microtime ( true );
if (! headers_sent ()) {
    header ( 'Content-type: text/html; charset=' . _ ( 'utf-8' ) );
}
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
            "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">';
echo '<html xmlns="http://www.w3.org/1999/xhtml"><head><title>' . $title . '</title>';
echo '<link rel="shortcut icon" href="' . $rootpath . '/coins-icon.png" />';
echo '<link rel="icon" href="' . $rootpath . '/coins-icon.png" />';
echo '<meta http-equiv="Content-Type" content="text/html; charset=' . _ ( 'utf-8' ) . '" />';
echo '<link href="' . $rootpath . '/javascripts/extjs/resources/css/ext-all.css" rel="stylesheet" type="text/css" />';
echo '<link href="' . $rootpath . '/css/tabs.css" rel="stylesheet" type="text/css" />';
echo '<link href="' . $rootpath . '/css/' . $_SESSION ['Theme'] . '/default.css" rel="stylesheet" type="text/css" />';

echo '<script type="text/javascript" src = "' . $rootpath . '/javascripts/extjs/adapter/ext/ext-base.js"></script>';
echo '<script type="text/javascript" src = "' . $rootpath . '/javascripts/extjs/ext-all.js"></script>';
echo '<script type="text/javascript" src = "' . $rootpath . '/javascripts/GeneralExtra.js"></script>';
echo '<script type="text/javascript" src = "' . $rootpath . '/javascripts/MiscFunctions.js"></script>';
echo '</head>';

echo '<body>';
echo '<table class="callout_main" cellpadding="0" cellspacing="0">';
echo '<tr>';
echo '<td colspan="2" rowspan="2">';

echo '<table class="main_page" cellpadding="0" cellspacing="0">';
echo '<tr>';
echo '<td>';
echo '<table width="100%" border="0" cellpadding="0" cellspacing="0" >';
echo '<tr>';
echo '<td>';

if ($title and substr ( $title, 0, 4 ) != 'Help') {
    echo '<table cellpadding="0" cellspacing="0" border="0" id="quick_menu" class="quick_menu">';
    echo '<tr>';
    echo '<td align="left" style="width:100%;" class="quick_menu_left">';
    // Use icons for company and user data, saves screen realestate, use ALT tag in case theme icon not avail.
    echo '<img src="' . $rootpath . '/css/' . $theme . '/images/company.png" TITLE="' . _ ( 'Company' ) . '" ALT="' . _ ( 'Company' ) . '">';
    echo ' ' . stripslashes ( $_SESSION ['CompanyRecord'] ['coyname'] ) . '  <a href="' . $rootpath . '/WWW_Users.php?' . SID . '"><img src="' . $rootpath . '/css/' . $theme . '/images/user.png" TITLE="User" ALT="' . _ ( 'User' ) . '"> ' . stripslashes ( $_SESSION ['UsersRealName'] ) . '</a>';
    // Make the title text a class, can be set to display:none is some themes
    echo '<BR><font class="header_title"> ' . $title . '</font></td>';
    echo ' </td>';

    echo '<td class="quick_menu_tabs">';
    echo '<table cellpadding="0" cellspacing="0" class="quick_menu_tabs"><tr>';
    echo '<td class="quick_menu_tab" align="center"><a accesskey="1" href="' . $rootpath . '/index.php?' . SID . '"><span style="text-decoration:underline;">1</span> ' . _ ( 'Quay về' ) . '</a></td>';

    if (count ( $_SESSION ['AllowedPageSecurityTokens'] ) > 1) {

        echo '<td class="quick_menu_tab" align="center"><a accesskey="2" href="' . $rootpath . '/ListSinger.php?' . SID . '"><span style="text-decoration:underline;">2</span> ' . _ ( 'Ca sỹ' ) . '</a></td>';

        echo '<td class="quick_menu_tab" align="center"><a accesskey="3" href="' . $rootpath . '/ListComposer.php?' . SID . '"><span style="text-decoration:underline;">3</span> ' . _ ( 'Nhạc sỹ' ) . '</a></td>';

        echo '<td class="quick_menu_tab" align="center"><a accesskey="4" href="' . $rootpath . '/YieldRevenueInformation.php?' . SID . '"><span style="text-decoration:underline;">4</span> ' . _ ( 'Thông kê sản lượng' ) . '</a></td>';
    }

    echo '<td class="quick_menu_tab" align="center"><a accesskey="0" href="' . $rootpath . '/Logout.php?' . SID . '" onclick="return confirm(\'' . _ ( 'Bạn muốn đăng xuất khỏi hệ thống?' ) . '\');"><span style="text-decoration:underline;">0</span> ' . _ ( 'Đăng xuất' ) . '</a></td>';
    echo '</tr></table>';
    echo '</td></tr></table>';
}

echo '</td>';
echo '</tr>';
echo '</table>';

?>
